package com.compus_help.entity.VO;


import com.compus_help.entity.Pojo.Admin;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;


@AllArgsConstructor
@NoArgsConstructor
public class AdminLoginVO {

    private Integer adminId;

    private String adminName;


    private String token;

    public static AdminLoginVO builder(Admin admin, String token) {
        AdminLoginVO adminLoginVO = new AdminLoginVO();
        adminLoginVO.setId(admin.getAdminId());
        adminLoginVO.setAdminName(admin.getAdminName());
        adminLoginVO.setToken(token);
        return adminLoginVO;
    }




    public String getAdminName() {
        return adminName;
    }

    public void setAdminName(String adminName) {
        this.adminName = adminName;
    }

    public Integer getId() {
        return adminId;
    }

    public void setId(Integer id) {
        this.adminId = adminId        ;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }
}
